package com.guigu.www.mapper;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.guigu.www.pojo.Employee;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tj
 * @since 2021-03-17
 */
public interface EmployeeMapper extends BaseMapper<Employee> {
        List<Employee> findList(Page<Employee> page);

//        List<Employee> findList(Page<Employee> page,Employee employee);
        //根据员工编号查询员工
        Employee queryById(int empno);

        //添加员工
        int addEmp(Employee employee);

        //修改员工
        int updEmp(Employee employee);

        //删除员工
        int delEmp(int empno);

}
